package nsalt.arch

import chisel3._
import chisel3.util._

object PreDecode {
  def C_JAL      = BitPat("b001_?_??_???_??_???_01")
  def C_J        = BitPat("b101_?_??_???_??_???_01")
  def C_BEQZ     = BitPat("b110_?_??_???_??_???_01")
  def C_BNEZ     = BitPat("b111_?_??_???_??_???_01")
  def RVI_BRANCH = BitPat("b???_?_??_???_11_???_11")

  val branchTable = Array(
    C_JAL      -> List(true.B),
    C_J        -> List(true.B),
    C_BEQZ     -> List(true.B),
    C_BNEZ     -> List(true.B),
    RVI_BRANCH -> List(true.B)
  )
}
